package syllabus.service.impl;

import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import syllabus.dao.POutlineMapper;
import syllabus.model.Criteria;
import syllabus.model.POutline;
import syllabus.service.POutlineService;

@Service
public class POutlineServiceImpl implements POutlineService {
    @Autowired
    private POutlineMapper pOutlineMapper;

    private static final Logger logger = LoggerFactory.getLogger(POutlineServiceImpl.class);

    public int countByExample(Criteria example) {
        int count = this.pOutlineMapper.countByExample(example);
        logger.debug("count: {}", count);
        return count;
    }

    public POutline selectByPrimaryKey(Integer id) {
        return this.pOutlineMapper.selectByPrimaryKey(id);
    }

    public List<POutline> selectByExample(Criteria example) {
        return this.pOutlineMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return this.pOutlineMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(POutline record) {
        return this.pOutlineMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(POutline record) {
        return this.pOutlineMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(Criteria example) {
        return this.pOutlineMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(POutline record, Criteria example) {
        return this.pOutlineMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(POutline record, Criteria example) {
        return this.pOutlineMapper.updateByExample(record, example);
    }

    public int insert(POutline record) {
        return this.pOutlineMapper.insert(record);
    }

    public int insertSelective(POutline record) {
        return this.pOutlineMapper.insertSelective(record);
    }
}